import { sequelize } from '../db';
import { DataTypes, Model } from 'sequelize';
class Log extends Model { }

Log.init({
    _id: DataTypes.INTEGER,
    name: DataTypes.STRING,
    type: DataTypes.STRING,
    msg: DataTypes.STRING,
    path: DataTypes.STRING,
    dff: DataTypes.STRING(2048),
    hasReset: {
        type: DataTypes.INTEGER,
        defaultValue: 0
    }
}, {
    sequelize,
    paranoid: true
});

export default Log